package com.siwei.mes.mapper.syncErp;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.sync.erp.ErpSupplierCompanyMaterials;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ERP-供应商原材料(ErpSupplierCompanyMaterials)表数据库访问层
 *
 * @author linzi
 * @since 2024-08-17 09:51:17
 */
public interface ErpSupplierCompanyMaterialsMapper extends BaseMapper<ErpSupplierCompanyMaterials> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ErpSupplierCompanyMaterials> getList(ErpSupplierCompanyMaterials entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    ErpSupplierCompanyMaterials loadById(@Param("id") Long id);

    /**
     * 根据cyrId查询
     *
     * @param cyrId
     * @return
     */
    ErpSupplierCompanyMaterials selectByCyrId(@Param("cyrId") Integer cyrId);
}
